/**
 * 序列化表单获取json数据
 */
$.fn.serializeObject = function () {
    let ojb = {};
    let array = this.serializeArray();
    $.each(array, function () {
        if (ojb[this.name]) {
            if (!ojb[this.name].push) {
                ojb[this.name] = [ojb[this.name]];
            }
            ojb[this.name].push(this.value || '');
        } else {
            ojb[this.name] = this.value || '';
        }
    });
    return ojb;
};